package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(
        name = "Event",
        title = "活动表",
        description = ""
)
@TableName(value = "activity_event")
public class Event {

    @Schema(title = "活动id", description = "")
    @TableId(value = "event_id")
    private Long id;

    @Schema(title = "创建者职工id", description = "")
    @TableField(value = "job_id")
    private Long jobId;

    @Schema(title = "床位年限", description = "")
    @TableField(value = "dictionary_power_year")
    private Long dictionaryPowerYear;

    @Schema(title = "活动审批类型", description = "")
    @TableField(value = "dictionary_apply_approval_type")
    private Long dictionaryApplyApprovalType;

    @Schema(title = "活动宣传图", description = "")
    @TableField(value = "event_image_path")
    private String imagePath;

    @Schema(title = "活动名称", description = "")
    @TableField(value = "event_name")
    private String name;

    @Schema(title = "活动介绍", description = "")
    @TableField(value = "event_intro")
    private String intro;

    @Schema(title = "起始时间", description = "")
    @TableField(value = "event_starting_time")
    private Date startingTime;

    @Schema(title = "结束时间", description = "")
    @TableField(value = "event_ending_time")
    private Date endingTime;
}
